package core.testcases;

import com.rational.test.ft.object.interfaces.TestObject;


/**
 * Description   : Functional Test Script
 * @author angel.tsvetkov
 */

/**
 * TestObj object instance is used for defining of UI control
 */
public class TestObj extends TestProjectSuperHelper
{
	//Property name (exm. .id, .text, .name)
	private String propName;
	
	//Property value. Can be regular expression
	private String propValue;
	
	//Control descriptive name (NAME OF THE CONTROL + TYPE)
	private String descriptiveName;
	
	//Parent object
	private TestObject parent;
	
	//Object class
	private String objClass;
	
	public TestObj(String propertyValue, String propertyName, String objClass, TestObject parent, String descriptiveName) {
		this.propName = propertyName;
		this.propValue = propertyValue;
		this.descriptiveName = descriptiveName;
		this.setParent(parent);
		this.setObjClass(objClass);
	}
	
	public TestObj(String descriptiveName) {
		this.descriptiveName = descriptiveName;
	}
	
	public String PropName() {
		return propName;
	}

	public String PropValue() {
		return propValue;
	}
	
	public String getDescriptiveName() {
		return descriptiveName;
	}
	
	public TestObject getParent() {
		return parent;
	}

	public void setParent(TestObject parent) {
		this.parent = parent;
	}

	public void setObjClass(String objClass) {
		this.objClass = objClass;
	}

	public String getObjClass() {
		return objClass;
	}
}

